#ifndef _UTILEDEF_HPP
#define _UTILEDEF_HPP

#if WINCE
#include "stdafx.h"
#endif

#if WIN32
#include <windows.h>
#include <winbase.h>
//#ifdef _WIN32_WCE
//#include "stdafx.h"
//#error "error"
//#endif
#define DLLexport __declspec(dllexport)

#define uchar unsigned char 
#define ulong unsigned long 
#define uint unsigned int 

#include "comm.hpp"
#include "usbcom.hpp"


#endif

#define  ANDROIDAPI 1

#if ANDROIDAPI

#define DLLexport
#define WINAPI
#define ICCRF_API

#define HANDLE int

#define PURGE_TXCLEAR  0
#define PURGE_RXCLEAR  0 

#include <string.h>
#include <stdint.h>

#define uchar uint8_t
#define ulong uint32_t



#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <termios.h>
#include <pthread.h>
#include <memory.h>
#include <jni.h>
#include <unistd.h>
#include <stdio.h>
#include <android/log.h>


#define COM_DEBUG 		    0
#define RSU_DEBUG 		    0
#define RSUAPP_DEBUG 		0
#define PSAMCOM_DEBUG       0
#define PSAMAPP_DEBUG       1

static const char *TAG="ICCRF";
#define LOGI(fmt, args...) __android_log_print(ANDROID_LOG_INFO,  TAG, fmt, ##args)

#define LOGD(fmt, args...) __android_log_print(ANDROID_LOG_DEBUG, TAG, fmt, ##args)
#define LOGE(fmt, args...) __android_log_print(ANDROID_LOG_ERROR, TAG, fmt, ##args)

#endif



#ifndef _T

#define _T

#endif








#endif
